package cn.iocoder.yudao.module.system.controller.admin.examclass.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 班级学生导入 Excel VO
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ExamClassStudentImportExcelVO {

    @ExcelProperty("学号")
    @NotBlank(message = "学号不能为空")
    private String studentNo;

    @ExcelProperty("学生姓名")
    @NotBlank(message = "学生姓名不能为空")
    private String studentName;

    @ExcelProperty("联系电话")
    private String phone;

    @ExcelProperty("邮箱")
    private String email;

    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status")
    @NotNull(message = "状态不能为空")
    private Integer status;

}